package cn.liying.org.mapper;

import cn.liying.org.domain.Department;
import cn.liying.org.query.DepartmentQuery;

import java.util.List;

/**
 * 部门Mapper层
 */
public interface DepartmentMapper {

    /**
     * 分页查询
     */
    //查询当前总条数
    Long queryCount(DepartmentQuery query);
    //查询当前页数的数据
    List<Department> queryData(DepartmentQuery query);

    /**
     * 基础增删改查
     */
    //增
    void save(Department department);
    //删
    void remove(Long id);
    //改
    void update(Department department);
    //查
    List<Department> loadAll();
    //通过id查询
    Department loadById(Long id);

}
